﻿new Element("MenuItem")
.property("Title", ko.observable("New Item"))
;

new Element("Menu")
.property("Items", ko.observableArray(['Menu Item 01', 'Menu Item 02']), null, null, "CollectionEditor")
.method(
	"AddItem"
,	function (item) {

		this.Items.push(item);

		return item;
	}
)
.method(
	"RemoveItem"
,	function (item) {

		this.Items.splice(this.Items.indexOf(item), 1);
	}
);